<%@ page pageEncoding="utf-8"%>
<%@page import="edu.pet.entity.Owner" %>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="allpage.css" >
    <title>宠物诊所</title>
  </head>
  <script type="text/javascript" src="../user/table_style.js"></script>
  <%
  	Owner owner = (Owner)session.getAttribute("owner");
  %>
  <body>
	  <div class="background">
	  <jsp:include page="suc.jsp"></jsp:include>
	  	<div class="contentDiv">
	  		<form action="../servlet/OwnerUpdateServlet" method="post">
	  			<input type="hidden" value="<%=owner.getOwner_id() %>" name="ownerid" />
	  			<input type="hidden" value="update" name="handle" />
		  		<table align="center">
		  			<tr>
		  				<td>所有人名称</td>
		  				<td><input type="text" name="ownername" value="<%=owner.getName() %>"/></td>
		  			</tr>
		  			<tr>
		  				<td>地址</td>
		  				<td><input type="text" name="address" value="<%=owner.getAddress() %>"/></td>
		  			</tr>
		  			<tr>
		  				<td>城市</td>
		  				<td><input type="text" name="city" value="<%=owner.getCity() %>"/></td>
		  			</tr>
		  			<tr>
		  				<td>电话号码</td>
		  				<td><input type="text" name="telephone" value="<%=owner.getTelephone() %>"/></td>
		  			</tr>
		  			<tr>
		  				<td><input type="submit" value="修改" /></td>
		  				<td><input type="button" value="放弃" onclick="javascript:window.location='petownerinfo.jsp'"/></td>
		  			</tr>
		  		</table>
	  		</form>
	  	</div>
	  </div>
  </body>
</html>
